package cc.ipost.ipost;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.webkit.WebView;

public class TermsActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);

		this.setContentView(R.layout.terms);
		
		View acceptBtn = this.findViewById(R.id.accept_btn);
		acceptBtn.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				Intent in = new Intent(TermsActivity.this, SettingsActivity.class);
				TermsActivity.this.startActivity(in);
			}
		});
		
		WebView content = (WebView) this.findViewById(R.id.terms_content);
		content.setBackgroundColor(0);
		content.loadUrl("file:///android_asset/terms.html");
		
	}

}
